package com.tianyu.inspection.entity.model;

import io.netty.channel.Channel;
import io.netty.channel.ChannelId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.util.concurrent.atomic.AtomicInteger;

/**********************************
 * @Author YSW
 * @Description WebSocket存储类型
 * @Date 2021/1/7 - 16:37
 **********************************/

@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
public class WebSocketChannelMo {
    private ChannelId channelId;
    private Channel channel;
    private String token;
    private Integer userId;
    private Integer roleId;
    private Integer projectId;
    private AtomicInteger heartbeatSeq = new AtomicInteger();
}
